from django.db import models

class Users(models.Model):
    username = models.CharField(max_length=10)
    password = models.CharField(max_length=77)
    age = models.IntegerField()
    sex = models.IntegerField(choices=((0,'女'),(1,'男')))
    email = models.CharField(max_length=30,null=True)
    phone = models.CharField(max_length=11)
    pic_url = models.CharField(max_length=100,null=True)
    status = models.IntegerField(default=0)
    addtime = models.DateTimeField(auto_now_add=True)